package com.mavenq.fly.listener;

import com.mavenq.fly.business.entity.Person;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class PushEventListener {

    @EventListener(PushEvent.class)
    public void eventListener1(PushEvent<String> event) {
        log.info(this.getClass().getSimpleName() + "监听到push数据：" + event.status);
        System.out.println("push数据:"+ event.getSource());
    }

}
